package util;

/**
 *
 * @author Martin Haulrich
 */
public class WordPOS {

    public final String word;

    public final String POS;

    public WordPOS(String word, String POS) {
        this.word = word;
        this.POS = POS;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final WordPOS other = (WordPOS) obj;
        if ((this.word == null) ? (other.word != null) : !this.word.equals(other.word)) {
            return false;
        }
        if ((this.POS == null) ? (other.POS != null) : !this.POS.equals(other.POS)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.word != null ? this.word.hashCode() : 0);
        hash = 37 * hash + (this.POS != null ? this.POS.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return word+"/"+POS;
    }


}
